package com.xiaomaoguai.springmvc.model;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonView;

/**
 * @Description :
 * @FileName: Student2.java
 * @Author :WeiHui.Zhang
 * @Data : 2015年5月18日 上午10:42:46
 * @Version:V1.00
 */
public class Student2 implements Serializable {

	public static interface UserIdView {
	}

	public static interface UserNameView {
	}

	public static interface UserPasswordView {
	}

	public static interface AllView extends UserIdView, UserNameView, UserPasswordView {
	}

	private static final long serialVersionUID = 1L;

	@JsonView(UserIdView.class)
	private int userId;

	@JsonView(UserNameView.class)
	private String username;

	@JsonView(UserPasswordView.class)
	private String password;

	public Student2() {
		super();
	}

	public Student2(int userId, String username, String password) {
		super();
		this.userId = userId;
		this.username = username;
		this.password = password;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "Student2 [userId=" + userId + ", username=" + username + ", password=" + password + "]";
	}

}
